package com.tjut.oop.hol4;

public abstract class  ColaEmployee {   
    //定义员工的姓名
    private  String staffNam;
	// 定义员工的生日月份
	private int staffBirthMonth;

	public String getStaffNam() {
		return staffNam;
	}

	public void setStaffNam(String staffNam) {
		this.staffNam = staffNam;
	}

	public int getStaffBirthMonth() {
		return staffBirthMonth;
	}

	public void setStaffBirthMonth(int staffBirthMonth) {
		this.staffBirthMonth = staffBirthMonth;
	}

	public ColaEmployee(String staffNam, int staffBirthMonth) {
		super();
		this.staffNam = staffNam;
		this.staffBirthMonth = staffBirthMonth;
	}

	//行为： 如果员工生日在本月增加工资100
	public double getSalary(int month) {
		if(month==this.staffBirthMonth)
			return 100;
		else
			return 0;
	  
	}
	
}
